/**
 * 函数管理接口测试用例入口
 *
 * Created by snowingsea on 2020/03/04.
 */
const fs = require('fs-extra');
const config = require('./../../api-config');

module.exports = describe('Test Function Manager', function () {
  after(function (done) {
    fs.remove(config.path.cacheDir)
      .then(() => {
        done();
      })
      .catch(done);
  });

  require('./get-function.test');
  require('./get-function-variables.test');
  require('./get-function-cfg.test');
  require('./get-functions.test');
  require('./edit-function.test');
  require('./edit-global-check.test');
  require('./edit-malloc-check.test');
  require('./stub-pointer-target/get-stub-pointer-targets.test');
  require('./stub-pointer-target/delete-stub-pointer-targets.test');
  require('./stub-pointer-target/add-stub-pointer-targets.test');
  require('./stub-pointer-target/edit-stub-pointer-targets.test');
  require('./malloc/get-malloc-variable.test');
  require('./malloc/add-malloc-variable.test');
  require('./malloc/delete-malloc-variable.test');
  require('./malloc/edit-malloc-variable.test');
  require('./fixedAddrs/add-fixed-address.test');
  require('./fixedAddrs/edit-fixed-address.test');
  require('./fixedAddrs/get-fixed-address.test');
  require('./fixedAddrs/delete-fixed-address.test');
  require('./stubs/get-stub.test');
  require('./stubs/add-stub.test');
  require('./stubs/delete-stub.test');
  require('./stubs/update-stub.test');
  require('./function-list-overview.test');
});
